const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8082,
    proxy: {
      '/elm': {
        target: 'http://localhost:8890',
        changeOrigin: true,
        pathRewrite: {
          '^/elm': '/elm'
        }
      }
    }
  },
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = '饿了没 - 管理员系统'
        return args
      })
  }
})
